import Home from '@/page/Home';
import Login from '@/page/Login';
import Register from '@/page/Register';
import Search from '@/page/Search';
import Detail from '@/page/Detail';
import AddCartSuccess from '@/page/AddCartSuccess';
import ShopCart from '@/page/ShopCart';
import Trade from '@/page/Trade';
import Pay from '@/page/Pay';
import Test from '@/page/Test';

export default [
  {
    path: '/',
    component: Home,
  },
  {
    path: '/test',
    component: Test,
  },
  {
    path: '/addcart_success',
    component: AddCartSuccess,
  },
  {
    path: '/shopcart',
    component: ShopCart,
  },
  {
    path: '/trade',
    component: Trade,
  },
  {
    path: '/pay',
    component: Pay,
  },
  {
    path: '/detail/:id',
    component: Detail,
  },
  {
    path: '/login',
    component: Login,
    meta: {
      isHiddenFooter: true,
    },
  },
  {
    path: '/register',
    component: Register,
    meta: {
      isHiddenFooter: true,
    },
  },
  {
    path: '/search',
    component: Search,
  },
];
